[FIX] Email link "go to message" being incorrectly escaped #17803
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Proposed changes
I've created a list of 'data keys' that should be escaped during the email sending, so added
room_pathto it that is the key that receives the value of "go to message" button link.Issue(s)
How to test or reproduce
Send a message that notifies someone via email, inspect the email content and you'll see the link has the chars
&escaped to&, i.e.:https://go.rocket.chat/room?rid=GENERAL&mid=7GubnFuWZRigynuJK&host=localhost%3A3000&path=channel%2Fgeneral%3Fmsg%3D7GubnFuWZRigynuJK&secure=noScreenshots
Types of changes
Checklist
Changelog
Further comments